package cn.wolfcode.luowowo.article.mapper;

import cn.wolfcode.luowowo.acticle.domain.ScenicSpot;
import cn.wolfcode.luowowo.acticle.query.ScenicSpotQuery;

import java.util.List;

public interface ScenicSpotMapper {
    int deleteByPrimaryKey(Long id);

    int insert(ScenicSpot record);

    ScenicSpot selectByPrimaryKey(Long id);

    List<ScenicSpot> selectAll();

    int updateByPrimaryKey(ScenicSpot record);

    List<ScenicSpot> selectForList(ScenicSpotQuery qo);

    List<ScenicSpot> selectTop5(ScenicSpotQuery qo);

    List<ScenicSpot> selectHot10(ScenicSpotQuery qo);

    ScenicSpot selectByDestId(long destId);

    ScenicSpot selectByScenicId(Long scenicId);
}